package com.ocom.common.request.human;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class GetPerFeatureRequest {

    @NotNull(message = "单位编号 不能为空")
    private Long comId;

    private Integer[] deptIds;

    @JsonProperty("pId")
    private Long pId;
    @JsonProperty("pCode")
    private String pCode;
    @JsonProperty("pName")
    private String pName;

    private String[] versions;

    private Float probabilityMax;

    private Float probabilityMin;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date endTime;

    private int page = 0;

    private int size = 500;

}
